package com.lzw.breezeNovel.model.entity.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.entity
 * @date 2025/2/27
 * @description 基础类
 */
@Data
public class BaseEntity implements Serializable {

// @Schema(description = "主键")
// private Long id;

 @Schema(description = "创建时间")
 @JsonIgnore
 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 private Date createTime;

 @Schema(description = "更新时间")
 @JsonIgnore
 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 private Date updateTime;

 @Schema(description = "逻辑删除")
 @JsonIgnore
 private Byte isDeleted;

}